<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
<title>Insert title here</title>
</head>
<body>
<div class='kontakt'>
<% //czesc dostępna dla wszystkich (error nie masz uprawnień)
HttpSession sesja = request.getSession(true);
if(!sesja.getAttribute("log").equals("admin") && !sesja.getAttribute("log").equals("kurier") &&
		!sesja.getAttribute("log").equals("klient")	&& !sesja.getAttribute("log").equals("pracownik")){	
	if(sesja.getAttribute("lang").equals("en")){%>
	<br><img src="images/stop.png" width=30% height=30%><br><br>
	<h1>ACCESS DANIED</h1><br>
	You don't have permission to access this page.<br>
	Log in first.
	<br><br>	
	<%}else{ %>
	<br><img src="images/stop.png" width=30% height=30%><br><br>
	<h1>DOSTĘP ZABRONIONY</h1><br>
	Nie masz uprawnień do oglądania tej strony.<br>
	Zaloguj się najpierw.
	<br><br>
<%}}else{%>
	<div class=formularz>
	<%if(sesja.getAttribute("lang").equals("en")){
		if(sesja.getAttribute("log")!=null && sesja.getAttribute("log")!=""){%>
		
			<form method='post' name='formularz' action='#' onSubmit='SprawdzHasla()'><fieldset class='obrys'>
			<Br>
			Please enter a new password.<Br><br>
			<label class=lewa>Old password:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="old_pass" id="old_pass" /></label><br><br>
			<label class=lewa>Password:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="pass1" id="pass1" /></label><br><br>
			<label class=lewa>Repeat password:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="pass2" id="pass2" /></label><br><br><br>
			<input class=przycisk type='button' name='ok' value='   Continue   ' width=80px onClick='ZmienHaslo()'>
			<input class=przycisk type='button' name='clean' value='Clean form' width=80px; onClick='this.form.reset()'><br><br><br><br>
			<div id=informacja style='color:red'>&nbsp;<br>&nbsp;</div>
			</fieldset>
			</form>
		<%}%>	
	<%}else{ 
		if(sesja.getAttribute("log")!=null && sesja.getAttribute("log")!=""){%>
			<form method='post' name='formularz' action='#' onSubmit='SprawdzHasla()'><fieldset class='obrys'>
			<Br>
			Proszę wprowadzić nowe hasło.<Br><br>
			<label class=lewa>Stare hasło:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="old_pass" id="old_pass" /></label><br><br>
			<label class=lewa>Nowe hasło:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="pass1" id="pass1" /></label><br><br>
			<label class=lewa>Powtórz hasło:&nbsp;&nbsp;</label><label class=lewa><input type="password" name="pass2" id="pass2" /></label><br><br><br>
			<input class=przycisk type='button' name='ok' value='      Kontynuuj      ' width=80px onClick='ZmienHaslo()'>
			<input class=przycisk type='button' name='clean' value='Wyczyść formularz' width=80px; onClick='this.form.reset()'><br><br><br><br>
			<div id=informacja style='color:red'>&nbsp;<br>&nbsp;</div>
			</fieldset>
			</form>
	<%}} %>	
	</div>
<%}%>
</div>
</body>
</html>